package com.bc.service.deal.Bitstamp;

import java.util.HashMap;

import com.bc.service.BaseResponse;
import com.bc.service.deal.BtcCategory;
import com.bc.utils.Constants;

public class BitstampResponse extends BaseResponse implements BtcCategory{
	double high;	//最高价
	double last;    //最近成交价
	long timestamp;  
	double bid;     //买一价
	double volume;  //成交量
	double low;     //最低价
	double ask;	    //卖一价
	
	@Override
	public HashMap<String, Object> getBtcNews() {
		HashMap<String, Object> mHashMap = new HashMap<String, Object>();
		mHashMap.put(Constants.LAST_SALE_PRICE, last);
		mHashMap.put(Constants.BUY_ONE_PRICE, bid);
		mHashMap.put(Constants.SELL_ONE_PRICE, ask);
		mHashMap.put(Constants.SELL_HIGH_PRICE, high);
		mHashMap.put(Constants.SELL_LOW_PRICE, low);
		mHashMap.put(Constants.SALE_VOLUME, volume);
		return mHashMap;
	}

	@Override
	public String getBtcType() {
		return "bitstampTicker";
	}
}
